'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	
	await db.collection('rx-users').doc(event.userId).update({ self: event.data })
	
	//返回数据给客户端
	return { data: {}, code: 200, msg: 'ok.' }
};
